# 函数名()
# 类名()

class Hero():

    def set_name(self, name):
        self.name = name

    def print_name(self):
        print(self.name)

# 实例化一个剑圣
jiansheng = Hero()
# 实例化一个盖伦
gailun = Hero()
# 实例化一个小炮
xiaopao = Hero()
jiansheng.set_name("剑圣")
jiansheng.print_name()